<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js" >
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>用户管理</title>
<link rel="stylesheet" rev="stylesheet" href="../css/style.css"
	type="text/css" media="all" />


<style type="text/css">
<!--
.atten {
	font-size: 12px;
	font-weight: normal;
	color: #F00;
}
-->
</style>
</head>

<body class="ContentBody">
	<form action="user!update.action" method="post" enctype="multipart/form-data" name="form" id="form" >
		<input name="user.id" type="hidden" value="${user.id}"/>
		<div class="MainDiv">
			<table width="99%" border="0" cellpadding="0" cellspacing="0"
				class="CContent">
				<tr>
					<th class="tablestyle_title">用户信息备案<legend>添加用户</legend></th>
				</tr>
				<tr>
					<td class="CPanel">

						<table border="0" cellpadding="0" cellspacing="0"
							style="width: 100%">


							<TR>
								<TD width="100%">
									<fieldset style="height: 100%;">
										
										<table border="0" cellpadding="2" cellspacing="1"
											style="width: 100%">

											<tr>
												<td nowrap align="right" width="13%">用户姓名:</td>
												<td width="41%" align="center" >  
												<input name="user.username" class="text"style="width: 200px" type="text" size="40" value="${user.username}"/>					    			
							    			</td>	
							    			<td nowrap align="right" width="13%">用户密码:</td>
												<td width="41%">
												<input name="user.password" class="text"style="width: 200px" type="text" size="40" value="${user.password}"/>
												<span class="red"> </span>
												</td>							 
											</tr>
											
											<tr>												
												<td nowrap align="right" width="13%">用户级别:</td>
												<td width="41%" align="center"><select name="user.grade" class="selectStyle" id="id2">
													<s:if test="user.grade=='high'">
													<option value="high" selected="selected">高</option>
													<option value="low" >低</option>
													</s:if>
													<s:else>
													<option value="high" >高</option>
													<option value="low" selected="selected">低</option>
													</s:else>
													</select>
													<span class="red"></span></td>
													<td nowrap align="right" width="13%">用户权限:</td>
												<td width="30%">
													<input name="user.company" class="text"style="width: 200px" type="text" size="40" value="${user.company}"/>
													<span class="red"> </span></td>
											</tr>
																					
										</table>
										<br />
									</fieldset>
								</TD>
							</TR>

						</TABLE>


					</td>
				</tr>

				<TR>
					<TD colspan="2" align="center" height="50px">
						<input type="submit" class="button" value="提交"/> 
						<input type="reset" class="button" value="重置" />
						<input type="button" class="button" name="return" value="返回" onclick="location='user'" />
					</TD>
				</TR>
			</TABLE>


			

		</div>
	</form>
</body>
</html>